package homework2;

public class MobileData {
	public static void main(String[] args) {
		int []arr={1,2,3,4};
		int temp;
		System.out.println("coded before:");
		for(int x:arr)
			System.out.printf("%2d", x);
		for (int i = 0; i < arr.length; i++) {
			arr[i]=(arr[i]+5)%10;
		}
		for (int i = 0; i < (arr.length+1)/2; i++) {
			temp=arr[i];
			arr[i]=arr[arr.length-1-i];
			arr[arr.length-1-i]=temp;
		}
		System.out.println();
		System.out.println("coded after:");
		for(int x:arr)
			System.out.printf("%2d", x);
	}

}
